<!DOCTYPE html>
<html lang="zh-cn">
<head>
    
    <link type="text/css" rel="stylesheet" href="/bundles/blog-common.css?v=KOZafwuaDasEedEenI5aTy8aXH0epbm6VUJ0v3vsT_Q1"/>
<link id="MainCss" type="text/css" rel="stylesheet" href="/skins/ThinkInside/bundle-ThinkInside.css?v=RRjf6pEarGnbXZ86qxNycPfQivwSKWRa4heYLB15rVE1"/>
<link type="text/css" rel="stylesheet" href="/blog/customcss/428549.css?v=%2fam3bBTkW5NBWhBE%2fD0lcyJv5UM%3d"/>

</head>
<body>
<a name="top"></a>

<div id="page_begin_html"></div><script>load_page_begin_html();</script>

<div id="topics">
	<div class = "post">
		<h1 class = "postTitle">
			<a id="cb_post_title_url" class="postTitle2" href="https://www.cnblogs.com/frankdeng/p/9452982.html">kafka可视化客户端工具（Kafka Tool）的基本使用</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<div id="cnblogs_post_body" class="blogpost-body"><h2 class="titleFont"><span class="bjh-p">1、下载</span></h2>
<div id="content_wrapper" class="mod">
<div class="mainContent iosStyle">
<p class="contentText contentFont  commonPadding"><span class="bjh-p">下载地址：<a href="http://www.kafkatool.com/download.html" target="_blank">http://www.kafkatool.com/download.html</a></span></p>
<p class="contentText contentFont  commonPadding"><span class="bjh-p"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810110359993-1642424656.png" alt="" /></span></p>
<h2 class="contentText contentFont  commonPadding"><span class="bjh-p">2、安装</span></h2>
<p class="contentText contentFont  commonPadding"><span class="bjh-p">根据不同的系统下载对应的版本，我这里kafka版本是1.1.0，下载kafka tool 2.0.1。</span></p>
<p class="contentText contentFont  commonPadding"><span class="bjh-p"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810093916591-939163695.png" alt="" /></span></p>
<p class="contentText contentFont  commonPadding"><span class="bjh-p">双击下载完成的exe图标，傻瓜式完成安装。</span></p>
<p class="contentText contentFont  commonPadding"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810105654694-1694715265.png" alt="" /></p>
<h2 class="contentText contentFont  commonPadding"><span class="bjh-p">3、简单使用</span></h2>
<p class="contentText contentFont  commonPadding"><span class="bjh-p">kafka环境搭建请参考：<a id="post_title_link_9403883" href="https://www.cnblogs.com/frankdeng/p/9403883.html" target="_blank">CentOS7.5搭建Kafka2.11-1.1.0集群</a></span></p>
<h3 class="contentText contentFont  commonPadding"><span class="bjh-p">1）连接kafka</span></h3>
<div class="contentMedia commonPadding">
<div class="contentImg onepxRBS">
<div><img src="https://f11.baidu.com/it/u=3898424176,72397971&amp;fm=173&amp;app=25&amp;f=JPEG?w=640&amp;h=361&amp;s=C410E0330F2E440B12F8A0D80100F0B3&amp;access=215967316" alt="" data-index="0" /><span class="openText">打开kafka tool安装目录，点击exe文件</span></div>
<div><span class="openText"><span class="openText"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810095005121-1577284917.png" alt="" /></span></span>
<p>提示设置kafka集群连接</p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810095122530-1959077818.png" alt="" /></p>
<p>&nbsp;点击确定，设置</p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810102808437-167572622.png" alt="" /></p>
<p>设置完了，点击Test测试是否能连接，连接通了，然后点击Add，添加完成设置。出现如下界面</p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810103244355-1006917474.png" alt="" /></p>
</div>
</div>
</div>
<h3 class="contentText contentFont  commonPadding"><span class="bjh-p">2）简单使用</span></h3>
<p class="contentText contentFont  commonPadding"><span class="bjh-p">配置以字符串的形式显示kafka消息体</span></p>
<p class="contentText contentFont  commonPadding"><span class="bjh-p"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810103622530-807372907.png" alt="" /></span></p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810103753705-257280181.png" alt="" /></p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810103835133-344931994.png" alt="" /></p>
<p>或者通过如下界面配置</p>
<p><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810104033684-505143541.png" alt="" /></p>
<div class="contentMedia commonPadding">
<div class="contentImg onepxRBS">
<div><span class="bjh-p">注释：更改完Content Types，要点击Update和Refresh按钮</span></div>
</div>
</div>
<p class="contentText contentFont  commonPadding"><span class="bjh-p">再次查看kafka的数据：</span></p>
<p class="contentText contentFont  commonPadding"><span class="bjh-p"><img src="https://images2018.cnblogs.com/blog/1385722/201808/1385722-20180810104611723-1281894781.png" alt="" /></span></p>
<div class="contentMedia commonPadding">
<div class="contentImg onepxRBS">
<div><img src="https://f12.baidu.com/it/u=904767104,1489779250&amp;fm=173&amp;app=25&amp;f=JPEG?w=640&amp;h=258&amp;s=B45064331F2A45224CE1A5DA0000F0B3&amp;access=215967316" alt="" data-index="3" /></div>
</div>
</div>
</div>
</div></div>
</body>
</html>
